@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&family=Outfit:wght@100..900&display=swap');

/* CSS Custom Properties / Design System */
:root {
  --primary-blue: #004cd2;
  --secondary-blue: #00a2ff;
  --brand-gradient: linear-gradient(135deg, #00a2ff 0%, #004cd2 100%);
  --brand-gradient-hover: linear-gradient(135deg, #004cd2 0%, #00a2ff 100%);
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-light: #ffffff;
  --text-gray: #777777;
  --bg-primary: #ffffff;
  --bg-secondary: #fdfdfd;
  --bg-light-gray: #f8f9fa;
  --border-color: #eeeeee;
  
  --font-heading: 'Montserrat', 'Outfit', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.12);
  
  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Typography Utility Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

.text-center {
  text-align: center;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Header & Glassmorphic Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-normal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-normal);
}

.header.scrolled .logo img {
  height: 42px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 80px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav__link:hover {
  color: var(--primary-blue);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Contact Button in Navigation */
.nav__btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
  color: var(--text-light) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 24px;
  border-radius: 50px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 76, 210, 0.15);
}

.nav__btn-contact:hover {
  background-color: var(--secondary-blue);
  box-shadow: 0 6px 20px rgba(0, 162, 255, 0.25);
  transform: translateY(-1px);
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  gap: 6px;
}

.lang-selector__item {
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-selector__item.active {
  background-color: #edf2ff;
  color: var(--primary-blue) !important;
  font-weight: 700;
  opacity: 1 !important;
}

.lang-selector__item:hover:not(.active) {
  color: var(--primary-blue);
  background-color: rgba(0, 76, 210, 0.04);
}

.lang-selector__separator {
  color: #ccc;
  cursor: default;
  font-weight: 400;
}

/* Hamburger Menu Icon */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-normal);
}

/* Mobile Nav Active States */
.burger-menu.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 80vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  animation: zoomBg 15s infinite alternate ease-in-out;
}

/* Zoom animation on load */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  z-index: 1;
}

@keyframes zoomBg {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.08); }
}

.hero__content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.hero__logo {
  width: 120px;
  height: auto;
  animation: fadeInDown 1s var(--transition-slow);
}

.hero__title {
  font-size: 4rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0.8;
  animation: bounce 2s infinite;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background-color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-gradient);
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: translateY(-100%); }
  50%, 100% { transform: translateY(100%); }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sub-Navigation Tabs */
.sub-nav {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  padding: 15px 0;
  transition: var(--transition-normal);
}

.header.scrolled + .sub-nav {
  top: 70px;
}

.sub-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
}

.breadcrumb span {
  margin: 0 8px;
}

.sub-nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.sub-nav__item a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 6px 0;
}

.sub-nav__item a i {
  font-size: 0.8rem;
  color: var(--primary-blue);
  transition: var(--transition-fast);
}

.sub-nav__item a:hover {
  color: var(--primary-blue);
}

.sub-nav__item a:hover i {
  transform: translateX(4px);
}

/* Sections General */
.section {
  padding: 100px 0;
  overflow: hidden;
}

.section--gray {
  background-color: var(--bg-light-gray);
}

.section__anchor {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-gray);
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
}

.section__anchor::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 2px;
  background-color: var(--primary-blue);
  vertical-align: middle;
  margin-right: 10px;
}

.section__title {
  font-size: 2.25rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.4;
  word-break: keep-all;
}

.section__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 24px;
}

.section__text:last-child {
  margin-bottom: 0;
}

/* Fade In animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section: Wisdom */
.wisdom__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wisdom__title {
  color: var(--brand-gradient);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section: Guidelines */
#guideline, .guideline {
  border-top: 1px solid var(--border-color);
  background-image: url('../assent/2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.guideline__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.guideline__content-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  max-width: 900px;
  margin: 0 auto;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.guideline__content-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.guideline__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 35px;
  line-height: 1.4;
}

.guideline__title span.small {
  display: block;
  font-size: 1.25rem; /* Increase size slightly since it's now the main title */
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

/* Section: Messages & Profiles */
.messages {
  position: relative;
}

.messages__inner {
  position: relative;
  z-index: 2;
}

.messages__title-logo {
  display: block;
  margin: 0 auto 50px auto;
  max-width: 140px;
  height: auto;
}

.messages__grid {
  display: flex;
  flex-direction: column;
  gap: 70px;
  margin-top: 60px;
}

.profile-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  background-color: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.03);
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.profile-card__img-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.profile-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.profile-card:hover .profile-card__img {
  transform: scale(1.06);
}

.profile-card__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-card__role {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.profile-card__name {
  font-size: 1.85rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.profile-card__name::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--brand-gradient);
  margin-top: 10px;
}

.profile-card__text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Contact CTA Section */
.contact-cta {
  background: var(--brand-gradient);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Diagonal line elements for abstract background */
.contact-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.contact-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-cta__title {
  font-size: 3rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 800;
}

.contact-cta__text {
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.95;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  border-radius: 30px;
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-cta svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: var(--transition-normal);
}

.btn-cta:hover {
  background-color: var(--text-light);
  color: var(--primary-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn-cta:hover svg {
  transform: translateX(5px);
}

/* Footer Section */
.footer {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  padding: 80px 0 0 0;
  border-top: 1px solid var(--border-color);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
}

.footer__about {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer__logo img {
  height: 38px;
  width: auto;
}

.footer__address {
  font-style: normal;
  line-height: 1.8;
  font-size: 0.9rem;
}

.address-map-link {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.address-map-link:hover {
  opacity: 0.8;
}

.footer__address-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

.location-icon {
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.footer__contact-info {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__contact-info a {
  display: inline-block;
}

.footer__contact-info a:hover {
  color: var(--secondary-blue);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer__nav-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

/* Footer Bottom */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  font-size: 0.85rem;
  color: var(--text-gray);
  border-bottom: 5px solid var(--primary-blue);
}

.footer__socials {
  display: flex;
  gap: 20px;
}

.footer__social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.footer__social-icon:hover {
  background-color: var(--primary-blue);
  color: var(--text-light);
  transform: translateY(-3px);
}

.footer__social-icon img {
  width: 20px;
  height: 20px;
}

.footer__copyright {
  color: var(--text-gray);
}

/* Page Top Button */
.pagetop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
}

.pagetop.visible {
  opacity: 1;
  visibility: visible;
}

.pagetop:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  background: var(--brand-gradient-hover);
}

.pagetop::after {
  content: '^';
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  transform: translateY(2px);
}

/* Responsive Media Queries */

@media screen and (max-width: 992px) {
  :root {
    --header-height: 70px;
  }
  
  .nav {
    margin-left: 30px;
  }
  
  .nav__list {
    gap: 20px;
  }
  
  .nav__actions {
    gap: 15px;
  }
  
  .hero__title {
    font-size: 3rem;
  }
  
  .profile-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .profile-card__img-container {
    height: 380px;
  }
}

/* Mobile Screens */
@media screen and (max-width: 768px) {
  .burger-menu {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 30px;
    transition: right var(--transition-normal);
    z-index: 1000;
    flex-grow: 0;
    margin-left: 0;
    justify-content: flex-start;
  }
  
  .nav.open {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    width: 100%;
    gap: 24px;
  }

  .nav__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }
  
  .nav__link {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }
  
  .lang-selector {
    border-left: none;
    border-top: 1px solid #eee;
    padding-left: 0;
    padding-top: 20px;
    width: 100%;
  }
  
  .sub-nav {
    display: none; /* Hide sticky subnav on mobile for cleaner screen space */
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section__title {
    font-size: 1.75rem;
    margin-bottom: 25px;
  }
  
  .guideline__title {
    font-size: 1.75rem;
  }
  
  .guideline__content-box {
    padding: 30px 20px;
    border-radius: 12px;
  }
  
  .profile-card__content {
    padding: 30px 20px;
  }
  
  .profile-card__name {
    font-size: 1.5rem;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer__nav {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .logo img {
    height: 38px;
  }
}


/* Language-specific visibility */
html[lang="en"] .lang-jp {
  display: none !important;
}
html[lang="ja"] .lang-en {
  display: none !important;
}
